﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Entities;
using BUS;
using Utility;

public partial class Administrator_khachhang_add : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void bt_ok_Click(object sender, EventArgs e)
    {

        try
        {
            Tbl_KhachHang_Entities kh = new Tbl_KhachHang_Entities();
            kh.TaiKhoan = txt_tendn.Text;
            kh.MatKhau = txt_mk.Text;
            kh.HoTen = txt_hoten.Text;
            kh.DiaChi = txt_dc.Text;
            kh.SDT = txt_sdt.Text;
            kh.Email = txt_email.Text;
            kh.Sodutaikhoan = 0;

            Tbl_KhachHang_BUS.Insert(kh);
            Response.Redirect("~/Administrator/Khachhang_ds.aspx");
        }
        catch
        {

        }
        

    }
}
